package com.sz.freemusic.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class SleepReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction() == Intent.ACTION_SCREEN_ON) {
			Log.d("freemusic", "----here");
			Intent i = new Intent();
	        i.setAction(Intent.ACTION_MAIN);
	        i.addCategory(Intent.CATEGORY_HOME);
	        context.startActivity(i);
		};

	}

}
